package ar.edu.utn.frgp.controller;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import ar.edu.utn.frgp.model.Paquete;
import ar.edu.utn.frgp.servicio.PaqueteService;

public class PaqueteSuccessServlet extends GenericServlet  {
	
	private PaqueteService paqService;
	
	public PaqueteSuccessServlet(){
		super();
		paqService = new PaqueteService();
		
	}

	@Override
	public void doAction(HttpServletRequest request,
			HttpServletResponse response) throws ServletException, IOException {
		
		String idPaquete = request.getParameter("idPaquete");
		String ciudadOringen = request.getParameter("ciudadOringen");
		String ciudadDestino = request.getParameter("ciudadDestino");
		
		response.sendRedirect(request.getContextPath() + "/paquetes");
		
		
		
		
		
	}


}
